package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.pojo.TUser;
import com.qf.service.TUserService;
import com.qf.mapper.TUserMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
* @author Lenovo
* @description 针对表【t_user】的数据库操作Service实现
* @createDate 2024-07-17 22:33:37
*/
@Service
@RequiredArgsConstructor
public class TUserServiceImpl extends ServiceImpl<TUserMapper, TUser>
    implements TUserService{
    private final TUserMapper userMapper;
    @Override
    public TUser login(String username) {
        TUser user = userMapper.selectOne(new LambdaQueryWrapper<TUser>().eq(TUser::getUsername, username));
        return user;
    }
}




